package com.hunan.yllxy.vo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * desc:
 *
 * @author cx316
 * Created by cx316 on 2020-02-12.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageQuery {
    private Integer pageNum;
    private Integer pageSize;
    private String keyword;
    /**
     * 1 desc 2 asc
     */
    private Integer sortType;
    private String sortField;

    public PageQuery(Integer pageNum, Integer pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
